

class Phone:
    IMEI = ''
    producer = 'HM'

    def call_by_4G(self):
        print('4G call')

class Phone_v2(Phone):
    face_id = '10001'
    def call_by_4G(self):
        super().call_by_4G()
    def call_by_5G(self):
        print('5G call')
# 单继承
phone = Phone_v2()
print(phone.producer)
phone.call_by_4G()
phone.call_by_5G()

# 多继承
class NFCReader:
    nfc_type = "第五代"
    producer = "ITCAST"
    def read_nfc(self):
        print("读取NFC")
    def write_nfc(self):
        print("写入NFC")

class RemoteControl:
    def control_phone(self):
        print("远程控制")

class phone_v3(Phone_v2, NFCReader, RemoteControl):
    pass

print(phone_v3.producer)